package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",24,"廊坊","jsd2302","001");

        zs.eat();
        zs.sleep();
        zs.study();
        zs.sayHi();

        Teacher ls = new Teacher("李四",25,"郑州",3000);

        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();

        Doctor ww = new Doctor("王五",26,"深圳","外科主任");

        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();
    }
}
